import { BrowserRouter, Route, Routes } from "react-router-dom"
import Layout from "./pages/layout/Layout.jsx"
import Home from "./pages/home/Home.jsx"
import NotFound from "./pages/404/index.jsx"

function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path='/' element={<Layout></Layout>}>
          <Route index element={<Home></Home>}></Route>
          <Route path='/home' element={<Home></Home>}></Route>
          <Route path='/about' element={<h2>关于</h2>}></Route>
          <Route path='/contact' element={<h2>联系</h2>}></Route>
        </Route>


        <Route path='*' element={<NotFound></NotFound>}></Route>
      </Routes>
    </BrowserRouter>
  )
}

export default App